﻿<?php
$lasttime=filemtime($_SERVER['DOCUMENT_ROOT']."/index.html");
$interval=84600;  //更新时间秒为单位1800秒=30分钟
$bdnum=1;//上面设置的时间自动审查生成HTML条数
if((time()-$lasttime)>$interval)
{
	require_once (dirname(__FILE__) . "/include/common.inc.php");
	require_once DEDEINC."/arc.partview.class.php";
	$GLOBALS['_arclistEnv'] = 'index';
	$row = $dsql->GetOne("Select * From `#@__homepageset`");
	$row['templet'] = MfTemplet($row['templet']);
	$pv = new PartView();
	$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
	$pv->SaveToHtml(dirname(__FILE__).'/index.html');
	exit();
}
?>